package com.lesso.cyg.sunflower.app.service.impl;

import com.baomidou.mybatisplus.plugins.Page;
import com.lesso.cyg.sunflower.domain.service.EmployeeAttendanceRuleRelDomainService;
import com.lesso.cyg.sunflower.pojo.dto.EmployeeAttendanceRuleRelDTO;
import com.lesso.cyg.sunflower.pojo.dto.EmployeeAttendanceRuleRelQueryDTO;
import com.lesso.cyg.sunflower.service.IEmployeeAttendanceRuleRelService;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.stereotype.Service;

/**
 * EmployeeAttendanceRuleRelServiceImpl
 *
 * @author cyg
 * @since 2025-07-02
 */
@Service
@DubboService
public class EmployeeAttendanceRuleRelServiceImpl implements IEmployeeAttendanceRuleRelService {
    private final EmployeeAttendanceRuleRelDomainService employeeAttendanceRuleRelDomainService;

    public EmployeeAttendanceRuleRelServiceImpl(EmployeeAttendanceRuleRelDomainService employeeAttendanceRuleRelDomainService) {
        this.employeeAttendanceRuleRelDomainService = employeeAttendanceRuleRelDomainService;
    }

    @Override
    public Integer save(EmployeeAttendanceRuleRelDTO dto) {
        return employeeAttendanceRuleRelDomainService.save(dto);
    }

    @Override
    public void deleteById(Long id) {
        employeeAttendanceRuleRelDomainService.deleteById(id);
    }

    @Override
    public Integer update(EmployeeAttendanceRuleRelDTO dto) {
        return employeeAttendanceRuleRelDomainService.update(dto);
    }

    @Override
    public Page<EmployeeAttendanceRuleRelDTO> page(EmployeeAttendanceRuleRelQueryDTO dto) {
        return employeeAttendanceRuleRelDomainService.page(dto);
    }
}